package vista;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.SwingConstants;

import javax.swing.WindowConstants;
import javax.swing.border.LineBorder;
import javax.swing.table.AbstractTableModel;




/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaListadoJugadores extends javax.swing.JFrame {
	private JLabel lblTitulo;
	private JPanel panPrincipal;
	private JScrollPane scpListado;
	private JTable tblJugadores;
	private JPanel jPanelSeleccNivel;
	private JLabel jLabelSeleccNivel;
	private JRadioButton jRadBttN1;
	private JRadioButton jRadBttN2;
	private JRadioButton jRadBttN3;

	public VentanaListadoJugadores() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			getContentPane().setBackground(new java.awt.Color(255,255,255));
			setTitle("Records");
			jPanelSeleccNivel = new JPanel();
			getContentPane().add(jPanelSeleccNivel);
			jPanelSeleccNivel.setBounds(31, 44, 381, 66);
			jPanelSeleccNivel.setBorder(new LineBorder(new java.awt.Color(0,0,0), 1, false));
			jPanelSeleccNivel.setLayout(null);
			{
				jLabelSeleccNivel = new JLabel();
				jPanelSeleccNivel.add(jLabelSeleccNivel);
				jLabelSeleccNivel.setText("Seleccionar Nivel");
				jLabelSeleccNivel.setBounds(13, 6, 140, 15);
			}
			{
				jRadBttN1 = new JRadioButton();
				jPanelSeleccNivel.add(jRadBttN1);
				jRadBttN1.setText("Basico");
				jRadBttN1.setBounds(32, 25, 71, 19);
			}
			{
				jRadBttN2 = new JRadioButton();
				jPanelSeleccNivel.add(jRadBttN2);
				jRadBttN2.setText("Intermedio");
				jRadBttN2.setBounds(119, 25, 120, 19);
			}
			{
				jRadBttN3 = new JRadioButton();
				jPanelSeleccNivel.add(jRadBttN3);
				jRadBttN3.setText("Experto");
				jRadBttN3.setBounds(250, 25, 90, 19);
			}
			{
				lblTitulo = new JLabel();
				getContentPane().add(lblTitulo);
				lblTitulo.setText("Mejores Puntuaciones");
				lblTitulo.setFont(new java.awt.Font("DejaVu Sans",1,16));
				lblTitulo.setBounds(63, 12, 310, 32);
				lblTitulo.setHorizontalTextPosition(SwingConstants.CENTER);
				lblTitulo.setHorizontalAlignment(SwingConstants.CENTER);
			}
			{
				panPrincipal = new JPanel();
				getContentPane().add(panPrincipal);
				panPrincipal.setBounds(31, 128, 381, 196);
				panPrincipal.setLayout(null);
				{
					scpListado = new JScrollPane();
					panPrincipal.add(scpListado);
					scpListado.setBounds(0, 0, 381, 196);
					{
						tblJugadores = new JTable();
						scpListado.setViewportView(tblJugadores);
					}
				}
			}

			pack();
			this.setSize(443, 380);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public void setResultados(AbstractTableModel abstractTableModel) {
		tblJugadores.setModel(abstractTableModel);
	}
  
	public JRadioButton getjRadBttN1() {
		return jRadBttN1;
	}

	public JRadioButton getjRadBttN3() {
		return jRadBttN3;
	}

	public JRadioButton getjRadBttN2() {
		return jRadBttN2;
	}
}
